package tests;

import static org.junit.Assert.assertTrue;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;

import org.junit.Test;

import engine.ARFFReader;
import engine.Project;

public class ARFFReaderTest {

	@Test
	public void converge() {
		ArrayList<Project> projects;
		try {
			projects = ARFFReader.parse("cocomonasa.arff");

		} catch (IOException e) {
			assertTrue(false);
		}
		assertTrue(true);
	}

	@Test
	public void nonExistingFile() {
		ArrayList<Project> projects;

		try {
			projects = ARFFReader.parse("asdklöasd.arff");
		} catch (FileNotFoundException e) {
			assertTrue(true);
		} catch (IOException e) {
			assertTrue(false);
		}
	}
}
